function updateFilterList(main)

stringToList = {};
set(main.handles.filterList, 'String', stringToList);

for index = 1 : main.filterAmount

    filterID = num2str(main.filterTracking{index,1});
    filterX = ['filter' filterID];
    
    approxType = num2str(main.(filterX).approximationType);
    order = num2str(main.(filterX).order);
    Q = num2str(max(main.(filterX).Q));
    
    filterName = IDtoName(approxType);
    color = getColor(str2double(approxType));
    
stringToList{index} = ['filter ' filterID ': ' filterName ' order ' order '; Q=' Q '; Color ' color];
end

set(main.handles.filterList,'Value',1); %Avoids "error" when repopulating LISTBOX
set(main.handles.filterList, 'String', stringToList);   % Repopulates listbox

end

function filterID = IDtoName(filterID)

    switch str2double(filterID)
        case 1
            filterID = 'Butterworth';
        case 2
            filterID = 'Chebychev';
        case 3
            filterID = 'Chebychev II';
        case 4
            filterID = 'Legendre';
        case 5
            filterID = 'Cauer';
        case 6
            filterID = 'Bessel';
        case 7
            filterID = 'Gauss';
        case 8
            filterID = 'Transicional';
    
    end

end